<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="../../org/angular.min.js"></script>
</head>

<body ng-app="app" ng-controller="ctrl">
    <div>{{data|orderBy:'id':true}}</div>
    <!-- 不传第二个参数，不管哪个值含有3都算 -->
    <div>{{data|filter:'3'}}</div>
    <!-- 第二个参数true完全匹配 -->
    <div>{{data|filter:3:true}}</div>
    <script>
        var m = angular.module('app', []);
        m.controller('ctrl', ['$scope', function($scope) {
            $scope.data = [{
                id: 1,
                title: '一条狗的使命',
                click: 30
            }, {
                id: 2,
                title: '催眠大师',
                click: 10
            }, {
                id: 3,
                title: '记忆大师',
                click: 20
            }, {
                id: 4,
                title: '东邪西毒',
                click: 13
            }, {
                id: 5,
                title: '生成西就',
                click: 23
            }];
        }])
    </script>
</body>

</html>
